package com.example.back.jpa;

import com.example.common.entity.RoleAdmin;
import com.example.common.entity.RoleModules;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface SysRoleModulesRepository extends JpaRepository<RoleModules, Long> {

    /**
     *
     * @param rId
     * @return
     */
    List<RoleModules> findByRid(Long rId);

    /**
     *
     * @param rId
     * @return
     */
    RoleModules findByAndRid(Long rId);

}
